package C11_12_ReplaceDelegationWithInheritance.refactorafter;

/**
 * @ClassName : Employee
 * @Description :
 * @Author : wukj1
 * @Date: 2022/8/16
 **/
public class Employee extends Person{

//    private Person person = new Person();

//    @Override
//    public String getName() {
//        return person.getName();
//    }
//
//    @Override
//    public void setName(String name) {
//        person.setName(name);
//    }

    @Override
    public String getLastName() {
        return "Emp: " + getLastName();
    }

}
